<template>
  <div v-if="showStatus === 0">
    <div class="icon block mgAuto authOk"/>
    <div class='mt100 pt65 color666 fz56'>{{ Lang.underReview }}}</div>
  </div>
  <div v-if="showStatus === 1">
    12222
  </div>
  <div v-if="showStatus === 2">
    12222
  </div>
  <div v-if="showStatus === 3">
    12222
  </div>
</template>

<script>
import axios from "axios";
import {stringify} from 'qs';
import Lang from "@/lang/cn";

export default {
  data() {
    return {
      showStatus: null,
      Lang: Lang,
    }
  },
  created() {
    this.getUserInfo()
  },
  methods: {
    getUserInfo() {
      const query = this.$route.query;
      console.log(query)

      let data = {
        service: 'TvProxy.getUserAuthInfo',
        token: 'bc8fbd34215eff43711aad35e0db7e07',
        uid: '10973338'
      }

      //data对象转为key=value字符串
      axios.post('https://api.coolgin.cn/gmaApi', stringify(data))
          .then(res => {
            console.log(res.data)
            const {data: {manual_cert_status}, errcode = 0} = res.data;
            if (errcode === 0) {
              this.showStatus = manual_cert_status;
            }
          })
    }
  }
}
</script>

<style lang="less">
@import "../../assets/css/index.less";
</style>